package cn.ai.shoes.common.exception;

import cn.ai.shoes.common.exception.util.ErrorCode;

public class ServiceException extends RuntimeException{
    public ServiceException(Integer code,String message) {
        super(message);
    }
    public ServiceException(String message) {
        super(message);
    }

    public ServiceException(ErrorCode shoeNotExist) {
        super(shoeNotExist.getResult());
    }
}
